package net.wing.demo.enums;

/**
 * @Author beifengtz
 * @Date Created in 10:32 2018/8/10
 * @Description:
 */
public enum  ResEnum {

    SYSTEM_ERROR(-1,"System error"),
    SUCCESS(0,"Success"),
    PARAM_ERROR(1,"The parameters you have entered are incorrect"),
    PARAM_ILLEGAL(2,"The character is illegal, please do not enter the following characters: * / # - & $ '"),
    GRANT_FAILED(3,"The request is not allowed, maybe your incoming token parameter is wrong");

    private int code;
    private String msg;

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    ResEnum(int code,String msg){
        this.code = code;
        this.msg = msg;
    }
}
